package com.example.demo.core.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;

/**
 * Created by czc-pual on 2019/1/4.
 */
public enum GradeEnum {

    PRIMARY(1,"小学"),
    SECONDORY(2,"中学"),
    HIGH(3,"高中");
    @EnumValue
    private final int code;
    private final String descp;
    GradeEnum(int code, String descp) {
        this.code = code;
        this.descp = descp;
    }
    public int getCode() {
        return code;
    }
    public String getDescp() {
        return descp;
    }
}
